#include <cstdio>

int main()
{
	for(int i = 1; i <= 200; i++) {
		int can = 0, j = i;

		while(can < 236 && j <= 200) {
			can += j;
			j++;
		}
		if(236 == can) {
			printf("%d %d\n", i, j - 1);
		}
	}

	return 0;
}